import axios from 'axios';

import { PlatformConfig } from '../models/PlatformConfig';
import ProcessOrderConfig from '../models/RootConfig';

export const getPlatformTypeList = () => axios.get('/api/v1/platform/card/type/list');

export const syncCardProduct = (query: PlatformConfig) => axios.post('/verification/card/sync', query.syncTypeBody);

export const getPlatformRate = () => axios.get('/api/v1/platform/get/rate');

export const updatePlatformRate = (query: PlatformConfig) => axios.post('/api/v1/platform/set/rate', query.rateBody);

export const updatePlatformDefault = (query: PlatformConfig) => axios.post('/api/v1/platform/card/type/set/start', query.platformTypeBody);

// ROOT
export const processOrder = (query: ProcessOrderConfig) => axios.post('/verification/card/process/order', query.body);
